16. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2024-03-04 14:38:22 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

16.1 Files compared

#LocationFileLast Modified
1/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.7/app/code/Smartwave/Filterproducts/view/frontend/templates/widgetowl_list.phtml2023-09-18 02:25:22 +0000
2/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/code/Smartwave/Filterproducts/view/frontend/templates/widgetowl_list.phtml2024-01-16 04:52:18 +0000

16.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged21982
Changed10223
Inserted9120
Removed11

16.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

16.4 Active regular expressions

No regular expressions were active.

16.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6 use Magento\Framework\App\Action\Action; 6 use Magento\Framework\App\Action\Action;
7  7 
8 // @codingStandardsIgnoreFile 8 // @codingStandardsIgnoreFile
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Product list template 12  * Product list template
13  * 13  *
14  * @var $block \Smartwave\Filterproducts\Block\ 14  * @var $block \Smartwave\Filterproducts\Block\
15  */ 15  */
16 ?> 16 ?>
17 <?php 17 <?php
18 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) { 18 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) {
19   $_productCollection = $block->getProductCollection()->getItems(); 19   $_productCollection = $block->getProductCollection()->getItems();
20   $_helper = $this->helper('Magento\Catalog\Helper\Output'); 20   $_helper = $this->helper('Magento\Catalog\Helper\Output');
21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
23   $_category_config = $_portohelper->getConfig('porto_settings/category'); 23   $_category_config = $_portohelper->getConfig('porto_settings/category');
24   $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 24   $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
25   $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label'); 25   $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label');
26   $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 26   $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
27   $extra_class = $this->getData("extra_class"); 27   $extra_class = $this->getData("extra_class");
    28 
    29   $_content_pos1 = $this->getData("product_content_pos1") ? $this->getData("product_content_pos1") : 'left';
    30   $_button_pos = $this->getData("product_button_pos") ? $this->getData("product_button_pos") : 'top';
    31   $_button_action = $this->getData("product_button_action") ? $this->getData("product_button_action") : 'top';
    32   $_icon_only1 = $this->getData("product_icon_only1") ? $this->getData("product_icon_only1") : '0';
    33   $_icon_only2 = $this->getData("product_icon_only2") ? $this->getData("product_icon_only2") : '0';
    34   $_block_pos = $this->getData("product_block_pos") ? $this->getData("product_block_pos") : 'default';
    35   $_quantity_pos = $this->getData("product_quantity_pos") ? $this->getData("product_quantity_pos") : 'below';
    36   $_content_pos2 = $this->getData("product_content_pos2") ? $this->getData("product_content_pos2") : 'default';
    37   $_content_pos3 = $this->getData("product_content_pos3") ? $this->getData("product_content_pos3") : 'left';
    38   $_link_pos = $this->getData("product_link_pos") ? $this->getData("product_link_pos") : 'default';
    39   $_box_style = $this->getData("product_box_style") ? $this->getData("product_box_style") : 'box_shadow';
    40 
28   // Daily deal Helper 41   // Daily deal Helper
29   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data'); 42   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
30  43 
31   $aspect_ratio = $this->getData("aspect_ratio"); 44   $aspect_ratio = $this->getData("aspect_ratio");
32   if($aspect_ratio == null) { 45   if($aspect_ratio == null) {
33       $aspect_ratio = $_category_config['aspect_ratio']; 46       $aspect_ratio = $_category_config['aspect_ratio'];
34   } 47   }
35   $image_width = $this->getData("image_width"); 48   $image_width = $this->getData("image_width");
36   if(!$image_width) { 49   if(!$image_width) {
37       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 50       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
38   } 51   }
39   $image_height = $this->getData("image_height"); 52   $image_height = $this->getData("image_height");
40   if($aspect_ratio) 53   if($aspect_ratio)
41       $image_height = $image_width; 54       $image_height = $image_width;
42   if(!$image_height) { 55   if(!$image_height) {
43       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 56       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
44   } 57   }
45   $product_type = $this->getData("product_type"); 58   $product_type = $this->getData("product_type");
46   if($product_type == null) { 59   if($product_type == null) {
47       $product_type = $_category_grid_config['product_type']; 60       $product_type = $_category_grid_config['product_type'];
48   } 61   }
49   if($product_type == null) { 62   if($product_type == null) {
50       $product_type = 1; 63       $product_type = 1;
51   } 64   }
52   $show_slide_nav = 'false'; 65   $show_slide_nav = 'false';
53   if($this->hasData("show_slide_nav")){ 66   if($this->hasData("show_slide_nav")){
54     $show_slide_nav = $this->getData("show_slide_nav") > 0 ? 'true': 'false'; 67     $show_slide_nav = $this->getData("show_slide_nav") > 0 ? 'true': 'false';
55   } 68   }
56   $show_slide_page = 'false'; 69   $show_slide_page = 'false';
57   if($this->hasData("show_slide_page")) { 70   if($this->hasData("show_slide_page")) {
58     $show_slide_page = $this->getData("show_slide_page") > 0 ? 'true': 'false'; 71     $show_slide_page = $this->getData("show_slide_page") > 0 ? 'true': 'false';
59   } 72   }
60   $enable_autoplay = 'false'; 73   $enable_autoplay = 'false';
61   if($this->hasData("enable_autoplay")) { 74   if($this->hasData("enable_autoplay")) {
62     $enable_autoplay = $this->getData("enable_autoplay") > 0 ? 'true': 'false'; 75     $enable_autoplay = $this->getData("enable_autoplay") > 0 ? 'true': 'false';
63   } 76   }
64   $enable_slide_loop = 'false'; 77   $enable_slide_loop = 'false';
65   if($this->hasData("enable_slide_loop")) { 78   if($this->hasData("enable_slide_loop")) {
66     $enable_slide_loop = $this->getData("enable_slide_loop") > 0 ? 'true': 'false'; 79     $enable_slide_loop = $this->getData("enable_slide_loop") > 0 ? 'true': 'false';
67   } 80   }
68   $desktop_slide_columns = '4'; 81   $desktop_slide_columns = '4';
69   if($this->hasData("desktop_slide_columns")) { 82   if($this->hasData("desktop_slide_columns")) {
70     $desktop_slide_columns = $this->getData("desktop_slide_columns"); 83     $desktop_slide_columns = $this->getData("desktop_slide_columns");
71   } 84   }
72   $tablet_slide_columns = '3'; 85   $tablet_slide_columns = '3';
73   if($this->hasData("tablet_slide_columns")) { 86   if($this->hasData("tablet_slide_columns")) {
74     $tablet_slide_columns = $this->getData("tablet_slide_columns"); 87     $tablet_slide_columns = $this->getData("tablet_slide_columns");
75   } 88   }
76   $mobile_slide_columns = '3'; 89   $mobile_slide_columns = '3';
77   if($this->hasData("mobile_slide_columns")) { 90   if($this->hasData("mobile_slide_columns")) {
78     $mobile_slide_columns = $this->getData("mobile_slide_columns"); 91     $mobile_slide_columns = $this->getData("mobile_slide_columns");
79   } 92   }
80  93 
81   $id = $block->getData('page_var_name') . uniqid('', false); 94   $id = $block->getData('page_var_name') . uniqid('', false);
82 } 95 }
83 ?> 96 ?>
84 <?php if (!$exist): ?> 97 <?php if (!$exist): ?>
85     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 98     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
86 <?php else: ?> 99 <?php else: ?>
87     <?php 100     <?php
88     $viewMode = 'grid'; 101     $viewMode = 'grid';
89     $image = 'category_page_grid'; 102     $image = 'category_page_grid';
90     $hover_image = 'category_page_grid-hover'; 103     $hover_image = 'category_page_grid-hover';
91     $showDescription = false; 104     $showDescription = false;
92     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 105     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
93     ?> 106     ?>
94     <div id="porto-filter-products-<?= $id ?>" class="porto-products"> 107     <div id="porto-filter-products-<?= $id ?>" class="porto-products">
95       <div class="slider-wrapper"> 108       <div class="slider-wrapper">
96         <div class="products wrapper <?php echo $viewMode; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>"> 109         <div class="products wrapper <?php echo $viewMode; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>">
97             <?php $iterator = 1; ?> 110             <?php $iterator = 1; ?>
98             <div class="filterproducts products products-slider list items product-items owl-carousel <?php echo $extra_class;?>"> 111             <div class="filterproducts products products-slider list items product-items owl-carousel <?php echo $extra_class;?>">
99                 <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 112                 <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
100                 <?php foreach ($_productCollection as $_product): ?> 113                 <?php foreach ($_productCollection as $_product): ?>
101                     <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?> 114                     <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?>
102                     <div class="product-item-info type<?php echo $product_type; ?>
" data-container="product-grid">
 115                     <?php
    116                       $newType = array("13", "14", "15", "16", "17", "18", "19", "20");
    117                       $_type_class = '';
    118                       $_content_pos1 = ' text-'.$_content_pos1;
    119                       if(in_array($product_type, $newType)) {
    120                         $_type_class = ' product-type-advanced';
    121                         if($product_type == '15'){
    122                           $_type_class = ' product-type-advanced effect-ovdefault';
    123                           if($_button_action == 'top'){
    124                             $_content_pos1 = ' text-center';
    125                           }
    126                           if($_button_action == 'hide'){
    127                             $_content_pos1 = ' text-center hide-actions';
    128                           }
    129                         }
    130                         if($product_type == '16'){
    131                           $_type_class = ' product-type-advanced effect-hddf'.' box-'.$_block_pos;
    132                           $_content_pos1 = ' text-'.$_content_pos3;
    133                         }
    134                         if($product_type == '18'){
    135                           $_type_class = ' product-type-advanced effect-detailimg';
    136                           $_content_pos1 = ' text-left';
    137                           if($_content_pos2 == 'top'){
    138                             $_type_class = ' product-type-advanced effect-detailimg actions-bottom';
    139                           }
    140                           if($_content_pos2 == 'center'){
    141                             $_content_pos1 = ' text-center';
    142                             $_type_class = ' product-type-advanced effect-detailimg actions-center';
    143                           }
    144                           if($_content_pos2 == 'bottom'){
    145                             $_type_class = ' product-type-advanced effect-detailimg actions-top';
    146                           }
    147                         }
    148                         if($product_type == '19'){
    149                           $_type_class = ' product-type-advanced effect-cartlink';
    150                           if($_link_pos == 'image') {
    151                             $_type_class = ' product-type-advanced effect-cartlink cartlink-image';
    152                           }
    153                           $_content_pos1 = ' text-left';
    154                         }
    155                         if($product_type == '20'){
    156                           $_content_pos1 = ' text-center';
    157                           if($_box_style == 'box_shadow') {
    158                             $_type_class .= ' product-type-advanced effect-bheshadow';
    159                           }
    160                           if($_box_style == 'box_full') {
    161                             $_type_class .= ' product-type-advanced effect-bhesfd';
    162                             $_content_pos1 = ' text-left';
    163                           }
    164                           if($_box_style == 'box_border') {
    165                             $_type_class .= ' product-type-advanced effect-bheborder';
    166                           }
    167                           if($_box_style == 'box_border_padding') {
    168                             $_type_class .= ' product-type-advanced effect-bhebrspace';
    169                           }
    170                         }
    171                       }
    172                     ?>
    173                     <div class="product-item-info type<?php echo $product_type; ?><?= $_content_pos1;?> porto-tb-item type-product has-post-thumbnail product-type-simple" data-container="product-grid">
    174                       <div class="porto-section<?=$_type_class?> p-0">
    175                         <?php if($product_type == '20' && $_box_style == 'box_full'):?><div class="content-shadow"></div><?php endif;?>
103                         <?php // Product Image ?> 176                         <?php // Product Image ?>
104                         <div class="product photo product-item-photo"> 177                         <div class="product photo product-item-photo<?php if(in_array($product_type, $newType)):?> porto-tb-featured-image tb-image-type-hover<?php endif;?> product-image">
    178                           <div class="porto-tb-featured-image tb-image-type-hover product-image">
105                             <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 179                             <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
106                             <?php 180                             <?php
107                                 if($aspect_ratio) 181                                 if($aspect_ratio)
108                                     $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 182                                     $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
109                                 else 183                                 else
110                                     $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 184                                     $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
111                                 $productImageUrl = $productImage->getUrl(); 185                                 $productImageUrl = $productImage->getUrl();
112                             ?> 186                             ?>
113                                 <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/> 187                                 <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
114                             <?php if($_category_config['alternative_image']): ?> 188                             <?php if($_category_config['alternative_image']): ?>
115                             <?php 189                             <?php
116                                 if($aspect_ratio) 190                                 if($aspect_ratio)
117                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 191                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
118                                 else 192                                 else
119                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 193                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
120                                 $productHoverImageUrl = $productHoverImage->getUrl(); 194                                 $productHoverImageUrl = $productHoverImage->getUrl();
121                             ?> 195                             ?>
122                                 <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 196                                 <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
123                                 <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/> 197                                 <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
124                                 <?php endif; ?> 198                                 <?php endif; ?>
125                             <?php endif; ?> 199                             <?php endif; ?>
126                             </a> 200                             </a>
127                             <?php 201                             <?php
128                                 $product_label = ""; 202                                 $product_label = "";
129                                 if($_product_label_config['sale_label']) { 203                                 if($_product_label_config['sale_label']) {
130                                     if ($percentage = $_portohelper->getPercentage($_product)) { 204                                     if ($percentage = $_portohelper->getPercentage($_product)) {
131                                         if($_product_label_config['sale_label_percent']) { 205                                         if($_product_label_config['sale_label_percent']) {
132                                             $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; 206                                             $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
133                                         } else { 207                                         } else {
134                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 208                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
135                                         } 209                                         }
136                                     } 210                                     }
137                                 } 211                                 }
138                                 if($_product_label_config['new_label']) { 212                                 if($_product_label_config['new_label']) {
139                                     $now = date("Y-m-d"); 213                                     $now = date("Y-m-d");
140                                     $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); 214                                     $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10);
141                                     $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10); 215                                     $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10);
142  216 
143                                     if ($newsTo != '' || $newsFrom != ''){ 217                                     if ($newsTo != '' || $newsFrom != ''){
144                                         if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 218                                         if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
145                                             $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 219                                             $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
146                                         } 220                                         }
147                                     } 221                                     }
148                                 } 222                                 }
149                                 if($product_label) 223                                 if($product_label)
150                                     echo '<div class="product-labels">'.$product_label.'</div>'; 224                                     echo '<div class="product-labels">'.$product_label.'</div>';
151                             ?> 225                             ?>
152                             <?php if($product_type == 3 || $product_type == 5 || 
$product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 11): ?>
 226                             <?php
153                             <div class="product-item-inner"> 227                             $_show_actions_top = false;
154                                 <div class="product actions product-item-actions"> 228                             $_product_inner_class = '';
    229                             if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','15','16','17','18','19','20'])) {
    230                               $_show_actions_top = true;
    231                               if($product_type == 14 && $_button_pos == 'outside'){
    232                                 $_show_actions_top = false;
    233                               }
    234                               if($product_type >= 13){
    235                                 $_product_inner_class = ' tb-hover-content with-link';
    236                               }
    237 
    238                               
if($product_type == 13 || ($product_type == 15 && $_button_action == 'top') || $product_type == 16 || $product_type == 17 || $product_type == 19)
 {
    239                                 $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    240                               }
    241                               if($product_type == 14 && $_icon_only1){
    242                                 $_product_inner_class .= ' show-cart-icon';
    243                               }
    244                               if($product_type == 14 && $_button_pos != 'outside'){
    245                                 $_product_inner_class .= ' button-pos-'.$_button_pos;
    246                               }
    247                               if($product_type == 15 && $_icon_only2 && $_button_action != 'top'){
    248                                 $_product_inner_class .= ' show-cart-icon';
    249                               }
    250                               if($product_type == 15 && $_button_action != 'top') {
    251                                 $_product_inner_class .= ' button-pos-center';
    252                               }
    253                               if($product_type == 18) {
    254                                 $_product_inner_class .= ' icon-absolute show-cart-icon';
    255                               }
    256                               if($product_type == 20 && $_box_style != 'box_full') {
    257                                 $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    258                               }
    259                               if($product_type == 20 && $_box_style == 'box_full'){
    260                                 $_show_actions_top = false;
    261                               }
    262                             }
    263                             if($_show_actions_top): ?>
    264                             <div class="product-item-inner<?= $_product_inner_class;?>">
    265                               <?php if(in_array($product_type, $newType)):?>
    266                               <a aria-label="post content" href="<?php echo $_product->getProductUrl() ?>" class="porto-tb-link"></a>
    267                               <?php endif;?>
    268                               <?php if($product_type == 15 || $product_type == 16 || $product_type == 18):?>
    269                                 <?php if(($product_type == 15 && $_button_action == 'center') || ($product_type == 18 && $_content_pos2 == 'default') || ($product_type == 18 && $_content_pos2 == 'center')):?>
    270                                 <div class="porto-section content-top">
    271                                   <?php $_productNameStripped =  $block->stripTags($_product->getName(), null, true); ?>
    272                                   <strong class="product name product-item-name">
    273                                       <a class="product-item-link"
    274                                          href="<?php echo $_product->getProductUrl() ?>">
    275                                           <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    276                                       </a>
    277                                   </strong>
    278                                   <?php if($_category_config['rating_star']): ?>
    279                                   <?php
    280                                       $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    281                                   ?>
    282                                   <?php if($review_html): ?>
    283                                       <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    284                                   <?php else: ?>
    285                                   <div class="product-reviews-summary short">
    286                                       <div class="rating-summary">
    287                                           <span class="label"><span>Rating:</span></span>
    288                                           <div class="rating-result" title="0%">
    289                                               <span style="width:0"><span>0%</span></span>
    290                                           </div>
    291                                       </div>
    292                                   </div>
    293                                   <?php endif; ?>
    294                                   <?php endif; ?>
    295                                 </div>
    296                                 <?php endif; ?>
    297                                 <div class="product details product-item-details porto-section<?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16):?> product-content<?php endif;?><?php if($product_type == 15 && $_button_action == 'center'):?> content-bottom<?php endif;?><?php if($product_type == 16 && $_block_pos == 'full'):?> d-flex justify-content-center flex-column<?php endif;?>">
    298                                   <?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16  || ($product_type == 18 && $_content_pos2 == 'top')  || ($product_type == 18 && $_content_pos2 == 'bottom')):?>
    299                                   <?php $_productNameStripped = $block->stripTags($_product->getName(), null, true); ?>
    300                                   <strong class="product name product-item-name">
    301                                       <a class="product-item-link"
    302                                          href="<?php echo $_product->getProductUrl() ?>">
    303                                           <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    304                                       </a>
    305                                   </strong>
    306                                   <?php if($_category_config['rating_star']): ?>
    307                                   <?php
    308                                       $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    309                                   ?>
    310                                   <?php if($review_html): ?>
    311                                       <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    312                                   <?php else: ?>
    313                                   <div class="product-reviews-summary short">
    314                                       <div class="rating-summary">
    315                                           <span class="label"><span>Rating:</span></span>
    316                                           <div class="rating-result" title="0%">
    317                                               <span style="width:0"><span>0%</span></span>
    318                                           </div>
    319                                       </div>
    320                                   </div>
    321                                   <?php endif; ?>
    322                                   <?php endif; ?>
    323                                   <?php endif;?>
    324 
    325                                   <?php if($_category_config['product_price']): ?>
    326                                   <?php echo $block->getProductPrice($_product) ?>
    327                                   <?php endif; ?>
    328                                   <?php echo $block->getProductDetailsHtml($_product); ?>
    329                                   <?php if($product_type == 16):?>
155                                     <div class="actions-primary"> 330                                     <div class="actions-primary">
156                                         <?php if ($_product->isSaleable()): ?> 331                                         <?php if ($_product->isSaleable()): ?>
157                                             <?php $postParams = $block->getAddToCartPostParams($_product); ?> 332                                           <?php $postParams = $block->getAddToCartPostParams($_product); ?>
158                                             <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 333                                           <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
159                                                 <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 334                                               <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
160                                                 <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 335                                               <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
161     
162                                                 <?php echo $block->getBlockHtml('formkey')?> 336                                               <?php echo $block->getBlockHtml('formkey')?>
163                                                 <button type="submit" 337                                               <button type="submit"
164                                                         title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 338                                                       title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
165                                                         class="action tocart primary"> 339                                                       class="action tocart primary">
166                                                     <span><?php echo __('Add to Cart') ?></span> 340                                                   <span><?php echo __('Add to Cart') ?></span>
167                                                 </button> 341                                               </button>
168                                             </form> 342                                           </form>
169                                         <?php else: ?> 343                                       <?php else: ?>
170                                             <?php if ($_product->getIsSalable()): ?> 344                                           <?php if ($_product->getIsSalable()): ?>
171                                                 <div class="stock available"><span><?php echo __('In stock') ?></span></div> 345                                               <div class="stock available"><span><?php echo __('In stock') ?></span></div>
172                                             <?php else: ?> 346                                           <?php else: ?>
173                                                 <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 347                                               <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
174                                             <?php endif; ?> 348                                           <?php endif; ?>
175                                         <?php endif; ?> 349                                       <?php endif; ?>
176                                     </div> 350                                     </div>
    351                                   <?php endif;?>
    352                                 </div>
    353                               <?php endif; ?>
    354                               <div class="product actions product-item-actions<?php if($product_type == 14 || ($product_type == 15 && $_button_action != 'top') || $product_type == 16 || $product_type == 17):?> d-flex align-items-center justify-content-center<?php endif;?><?php if($product_type == 17 && $_quantity_pos == 'image_center'):?> actions-center<?php endif;?>">
    355                                 <?php
    356                                   $c_show_cart = false;
    357                                   if($product_type != 16){
    358                                     $c_show_cart = true;
    359                                   }
    360                                   if($product_type == 17 && ($_quantity_pos =='below' || $_quantity_pos =='above')) {
    361                                     $c_show_cart = false;
    362                                   }
    363                                   if($product_type == 19 && $_link_pos != 'image') {
    364                                     $c_show_cart = false;
    365                                   }
    366                                 ?>
    367                                 <?php if($c_show_cart):?>
    368                                 <div class="actions-primary">
    369                                     <?php if ($_product->isSaleable()): ?>
    370                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
    371                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post" class="d-flex flex-column flex-sm-row">
    372                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
    373                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
    374                                             <?php if($product_type == 17 && ($_quantity_pos == 'image_bottom' || $_quantity_pos == 'image_center')):?>
    375                                                 <div class="qty-box">
    376                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
    377                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
    378                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
    379                                                 </div>
    380                                             <?php endif;?>
    381                                             <?php echo $block->getBlockHtml('formkey')?>
    382                                             <button type="submit"
    383                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
    384                                                     class="action tocart primary">
    385                                                 <span><?php echo __('Add to Cart') ?></span>
    386                                             </button>
    387                                         </form>
    388                                     <?php else: ?>
    389                                         <?php if ($_product->getIsSalable()): ?>
    390                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
    391                                         <?php else: ?>
    392                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
    393                                         <?php endif; ?>
    394                                     <?php endif; ?>
    395                                 </div>
    396                                 <?php endif; ?>
177                                     <?php if ($block->getMode() == 'grid'): ?> 397                                 <?php if ($block->getMode() == 'grid'): ?>
178                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 398                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
179                                         <a href="#" 399                                     <a href="#"
180                                            class="action towishlist actions-secondary" 400                                        class="action towishlist actions-secondary"
181                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 401                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
182                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 402                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
183                                            data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 403                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
184                                            data-action="add-to-wishlist" 404                                        data-action="add-to-wishlist"
185                                            role="button"> 405                                        role="button">
186                                             <span><?php echo __('Add to Wish List') ?></span> 406                                         <span><?php echo __('Add to Wish List') ?></span>
187                                         </a> 407                                     </a>
188                                     <?php endif; ?> 408                                 <?php endif; ?>
189                                     <?php endif; ?> 409                                 <?php endif; ?>
190                                     <?php if($_category_config['addtocompare']): ?> 410                                 <?php if($_category_config['addtocompare']): ?>
191                                     <?php 411                                 <?php
192                                     $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 412                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
193                                     ?> 413                                 ?>
194                                     <a href="#" 414                                 <a href="#"
195                                        class="action tocompare actions-secondary" 415                                    class="action tocompare actions-secondary"
196                                        title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 416                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
197                                        aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 417                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
198                                        data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 418                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
199                                        role="button"> 419                                    role="button">
200                                         <span><?php echo __('Add to Compare') ?></span> 420                                     <span><?php echo __('Add to Compare') ?></span>
201                                     </a> 421                                 </a>
202                                     <?php endif; ?> 422                                 <?php endif; ?>
203                                 </div> 423                               </div>
204                             </div> 424                             </div>
205                             <?php endif; ?> 425                             <?php endif; ?>
    426                             <?php if($product_type != 13 && $product_type != 14 && $product_type != 17 && $product_type != 18 && $product_type != 20): ?>
206                             <!-- Dailydeal Product data --> 427                             <!-- Dailydeal Product data -->
207                             <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?> 428                             <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
208                             <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?> 429                             <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?>
209                             <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" > 430                             <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
210                             <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>"> 431                             <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
211                             <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>"> 432                             <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
212                                 <div class="sw-dailydeal"> 433                                 <div class="sw-dailydeal">
213                                     <p id="expired_<?php echo $unique_id; ?>"></p> 434                                     <p id="expired_<?php echo $unique_id; ?>"></p>
214                                     <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;"> 435                                     <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
215                                         <span class="dailydeal-label"> 436                                         <span class="dailydeal-label">
216                                             <?php echo __('Ends In:'); ?> 437                                             <?php echo __('Ends In:'); ?>
217                                         </span> 438                                         </span>
218                                         <span class="number-wrapper"> 439                                         <span class="number-wrapper">
219                                             <div class="line"></div> 440                                             <div class="line"></div>
220                                             <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span> 441                                             <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
221                                             <div class="caption"><?php echo __('Day(s), '); ?></div> 442                                             <div class="caption"><?php echo __('Day(s), '); ?></div>
222                                         </span> 443                                         </span>
223  444 
224                                         <span class="number-wrapper"> 445                                         <span class="number-wrapper">
225                                             <div class="line"></div> 446                                             <div class="line"></div>
226                                             <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span> 447                                             <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
227                                             <div class="caption">:</div> 448                                             <div class="caption">:</div>
228                                         </span> 449                                         </span>
229  450 
230                                         <span class="number-wrapper"> 451                                         <span class="number-wrapper">
231                                             <div class="line"></div> 452                                             <div class="line"></div>
232                                             <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span> 453                                             <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
233                                             <div class="caption">:</div> 454                                             <div class="caption">:</div>
234                                         </span> 455                                         </span>
235  456 
236                                         <span class="number-wrapper"> 457                                         <span class="number-wrapper">
237                                             <div class="line"></div> 458                                             <div class="line"></div>
238                                             <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span> 459                                             <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
239                                             <div class="caption"></div> 460                                             <div class="caption"></div>
240                                         </span> 461                                         </span>
241                                     </div> 462                                     </div>
242                                 </div> 463                                 </div>
243                             </div> 464                             </div>
244                             <?php endif; ?> 465                             <?php endif; ?>
245                             <!-- Dailydeal Product End --> 466                             <!-- Dailydeal Product End -->
    467                             <?php endif;?>
    468                           </div>
    469                         </div>
    470                         <?php if($product_type != '15' && $product_type != 16  && $product_type != '18'): ?>
    471                         <div class="product details product-item-details porto-section product-content<?php if($product_type == '17' && $_quantity_pos =='above'):?> qty-above d-flex flex-column align-items-center<?php endif;?><?php if($product_type == '19' && ($_link_pos == 'top' || $_link_pos == 'hidden')){?> show-cartlink-top<?php }?>">
    472                           <?php if($product_type == '13' || $product_type == '14' || $product_type == '17' || $product_type == '20'): ?>
    473                             <!-- Dailydeal Product data -->
    474                             <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
    475                             <?php $unique_id = rtrim(base64_encode(md5(microtime())),"="); ?>
    476                             <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
    477                             <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
    478                             <div class="sw-dailydeal-wrapper product-type-countdown2" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
    479                                 <div class="sw-dailydeal">
    480                                     <p id="expired_<?php echo $unique_id; ?>"></p>
    481                                     <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
    482                                         <span class="number-wrapper">
    483                                           <div class="line"></div>
    484                                           <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
    485                                           <div class="caption"><?php echo __('Days'); ?></div>
    486                                         </span>
    487                                         <span class="number-wrapper">
    488                                           <div class="line"></div>
    489                                           <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
    490                                           <div class="caption"><?php echo __('Hours'); ?></div>
    491                                         </span>
    492                                         <span class="number-wrapper">
    493                                           <div class="line"></div>
    494                                           <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
    495                                           <div class="caption"><?php echo __('Min'); ?></div>
    496                                         </span>
    497                                         <span class="number-wrapper">
    498                                           <div class="line"></div>
    499                                           <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
    500                                           <div class="caption"><?php echo __('Sec'); ?></div>
    501                                         </span>
    502                                     </div>
    503                                 </div>
246                         </div> 504                             </div>
247                         <div class="product details product-item-details"> 505                             <?php endif; ?>
    506                             <!-- Dailydeal Product End -->
    507                           <?php endif;?>
248                             <?php 508                           <?php
249                                 $_productNameStripped = $block->stripTags($_product->getName(), null, true); 509                               $_productNameStripped = $block->stripTags($_product->getName(), null, true);
250                             ?> 510                           ?>
    511                           <?php if($product_type == '13' || $product_type == '14' || $product_type == '19'  || $product_type == '20'): ?>
    512                             <?php echo $block->getProductDetailsHtml($_product); ?>
    513                           <?php endif;?>
251                             <strong class="product name product-item-name"> 514                           <strong class="product name product-item-name">
252                                 <a class="product-item-link" 515                               <a class="product-item-link"
253                                    href="<?php echo $_product->getProductUrl() ?>"> 516                                  href="<?php echo $_product->getProductUrl() ?>">
254                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 517                                   <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
255                                 </a> 518                               </a>
256                             </strong> 519                           </strong>
257                             <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 520                           <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
258                             <?php if($_category_config['rating_star']): ?> 521                           <?php if($_category_config['rating_star']): ?>
259                             <?php 522                           <?php
260                                 $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 523                               $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
261                             ?> 524                           ?>
262                             <?php if($review_html): ?> 525                           <?php if($review_html): ?>
263                                 <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 526                               <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
264                             <?php else: ?> 527                           <?php else: ?>
265                             <div class="product-reviews-summary short"> 528                           <div class="product-reviews-summary short">
266                                 <div class="rating-summary"> 529                               <div class="rating-summary">
267                                     <span class="label"><span>Rating:</span></span> 530                                   <span class="label"><span>Rating:</span></span>
268                                     <div class="rating-result" title="0%"> 531                                   <div class="rating-result" title="0%">
269                                         <span style="width:0"><span>0%</span></span> 532                                       <span style="width:0"><span>0%</span></span>
270                                     </div> 533                                   </div>
271                                 </div> 534                               </div>
272                             </div> 535                           </div>
273                             <?php endif; ?> 536                           <?php endif; ?>
274                             <?php endif; ?> 537                           <?php endif; ?>
275  538 
276                             <?php if ($showDescription):?> 539                           <?php if ($showDescription):?>
277                                 <div class="product description product-item-description"> 540                               <div class="product description product-item-description">
278                                     <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 541                                   <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
279                                     <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 542                                   <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
280                                        class="action more"><?php echo __('Learn More') ?></a> 543                                      class="action more"><?php echo __('Learn More') ?></a>
281                                 </div> 544                               </div>
282                             <?php endif; ?> 545                           <?php endif; ?>
283                             <?php if($_category_config['product_price']): ?> 546                           <?php if($_category_config['product_price']): ?>
284                             <?php echo $block->getProductPrice($_product) ?> 547                           <?php echo $block->getProductPrice($_product) ?>
285                             <?php endif; ?> 548                           <?php endif; ?>
    549 
    550                           <?php if($product_type != '13' && $product_type != '14' && $product_type != '19' && $product_type != '20'): ?>
286                             <?php echo $block->getProductDetailsHtml($_product); ?> 551                           <?php echo $block->getProductDetailsHtml($_product); ?>
    552                           <?php endif; ?>
287  553 
288                             <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 11 && $product_type != 12): ?> 554                           <?php
289                             <div class="product-item-inner
">
 555                           $_product_show_actions = true;
290                                 <div class="product actions product-item-actions"> 556                           $_product_details_inner_class = '';
    557                           if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','17','19','20'])) {
    558                             $_product_show_actions = false;
    559                             if($product_type == '14' && $_button_pos =='outside'){
    560                               $_product_show_actions = true;
    561                               $_product_details_inner_class .= ' button-pos'.$_button_pos;
    562                             }
    563                             if($product_type == '14' && $_icon_only1 ) {
    564                               $_product_details_inner_class .= ' show-cart-icon';
    565                             }
    566                             if($product_type == '17' && ($_quantity_pos =='below' || $_quantity_pos =='above')){
    567                               $_product_show_actions = true;
    568                             }
    569                             if($product_type == '19' && ($_link_pos == 'default' || $_link_pos == 'top')){
    570                               $_product_show_actions = true;
    571                             }
    572                             if($product_type == '20' && $_box_style == 'box_full'){
    573                               $_product_show_actions = true;
    574                             }
    575                           }
    576                           if($_product_show_actions): ?>
    577                           <div class="product-item-inner<?=$_product_details_inner_class;?>">
    578                             <?php if($product_type == '20' && $_box_style == 'box_full'){?>
    579                               <div class="product description product-item-description">
    580                                 <?php
    581                                 $length = 118;
    582                                 $shortContent = $_product->getShortDescription();
    583                                 echo $shortContent = strip_tags((strlen($shortContent) > $length) ? substr($shortContent,0,$length).'...' : $shortContent);
    584                                 ?>
    585                               </div>
    586                             <?php }?>
    587                             <div class="product actions product-item-actions<?php if(($product_type == '14' && $_button_pos == 'outside') || ($product_type == '20' && $_box_style == 'box_full')):?> d-flex align-items-center justify-content-center<?php endif;?>">
291                                     <?php if ($block->getMode() == 'grid'): ?> 588                               <?php if ($block->getMode() == 'grid'): ?>
292                                     <?php if($_category_config['addtowishlist'] && $product_type != 
4
): ?>
 589                               <?php if($_category_config['addtowishlist'] && $product_type != '4 && $product_type != '17' && $product_type != '19'): ?>
293                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 590                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
294                                         <a href="#" 591                                   <a href="#"
295                                            class="action towishlist actions-secondary" 592                                      class="action towishlist actions-secondary"
296                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 593                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
297                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 594                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
298                                            data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 595                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
299                                            data-action="add-to-wishlist" 596                                      data-action="add-to-wishlist"
300                                            role="button"> 597                                      role="button">
301                                             <span><?php echo __('Add to Wish List') ?></span> 598                                       <span><?php echo __('Add to Wish List') ?></span>
302                                         </a> 599                                   </a>
303                                     <?php endif; ?> 600                               <?php endif; ?>
304                                     <?php endif; ?> 601                               <?php endif; ?>
305                                     <?php endif; ?> 602                               <?php endif; ?>
306                                     <div class="actions-primary"> 603                               <div class="actions-primary">
307                                         <?php if ($_product->isSaleable()): ?> 604                                   <?php if ($_product->isSaleable()): ?>
308                                             <?php $postParams = $block->getAddToCartPostParams($_product); ?> 605                                       <?php $postParams = $block->getAddToCartPostParams($_product); ?>
309                                             <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"
>
 606                                       <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"  class="d-flex flex-column flex-sm-row">
310                                                 <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 607                                           <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
311                                                 <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 608                                           <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
312                                                 <?php if($product_type == 10
):?>
 609                                           <?php if($product_type == 10 || $product_type == 17):?>
313                                                     <div class="qty-box"> 610                                               <div class="qty-box">
314                                                         <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> 611                                                   <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
315                                                         <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> 612                                                   <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
316                                                         <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> 613                                                   <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
317                                                     </div> 614                                               </div>
318                                                 <?php endif;?> 615                                           <?php endif;?>
319                                                 <?php echo $block->getBlockHtml('formkey')?> 616                                           <?php echo $block->getBlockHtml('formkey')?>
320                                                 <button type="submit" 617                                           <button type="submit"
321                                                         title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 618                                                   title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
322                                                         class="action tocart primary"> 619                                                   class="action tocart primary">
323                                                     <span><?php echo __('Add to Cart') ?></span> 620                                               <span><?php echo __('Add to Cart') ?></span>
324                                                 </button> 621                                           </button>
325                                             </form> 622                                       </form>
326                                         <?php else: ?> 623                                   <?php else: ?>
327                                             <?php if ($_product->getIsSalable()): ?> 624                                       <?php if ($_product->getIsSalable()): ?>
328                                                 <div class="stock available"><span><?php echo __('In stock') ?></span></div> 625                                           <div class="stock available"><span><?php echo __('In stock') ?></span></div>
329                                             <?php else: ?> 626                                       <?php else: ?>
330                                                 <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 627                                           <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
331                                             <?php endif; ?> 628                                       <?php endif; ?>
332                                         <?php endif; ?> 629                                   <?php endif; ?>
333                                     </div> 630                               </div>
334                                     <?php if ($block->getMode() == 'grid'
): ?>
 631                               <?php if ($block->getMode() == 'grid' && $product_type != '17' && $product_type != '19'): ?>
335                                     <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> 632                               <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
336                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 633                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
337                                         <a href="#" 634                                   <a href="#"
338                                            class="action towishlist actions-secondary" 635                                      class="action towishlist actions-secondary"
339                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 636                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
340                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 637                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
341                                            data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 638                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
342                                            data-action="add-to-wishlist" 639                                      data-action="add-to-wishlist"
343                                            role="button"> 640                                      role="button">
344                                             <span><?php echo __('Add to Wish List') ?></span> 641                                       <span><?php echo __('Add to Wish List') ?></span>
345                                         </a> 642                                   </a>
346                                     <?php endif; ?> 643                               <?php endif; ?>
347                                     <?php endif; ?> 644                               <?php endif; ?>
348                                     <?php endif; ?> 645                               <?php endif; ?>
349                                     <?php if($_category_config['addtocompare']
): ?>
 646                               <?php if($_category_config['addtocompare'] && $product_type != '17' && $product_type != '19'): ?>
350                                     <?php 647                               <?php
351                                     $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 648                               $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
352                                     ?> 649                               ?>
353                                     <a href="#" 650                               <a href="#"
354                                        class="action tocompare actions-secondary" 651                                  class="action tocompare actions-secondary"
355                                        title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 652                                  title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
356                                        aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 653                                  aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
357                                        data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 654                                  data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
358                                        role="button"> 655                                  role="button">
359                                         <span><?php echo __('Add to Compare') ?></span> 656                                   <span><?php echo __('Add to Compare') ?></span>
360                                     </a> 657                               </a>
361                                     <?php endif; ?> 658                               <?php endif; ?>
362                                 </div> 659                             </div>
363                             </div> 660                           </div>
364                             <?php endif; ?> 661                           <?php endif; ?>
365                         </div> 662                         </div>
    663                         <?php endif;?>
    664                       </div>
366                     </div> 665                     </div>
367                     <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?> 666                     <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?>
368                 <?php endforeach; ?> 667                 <?php endforeach; ?>
369             </div> 668             </div>
370         </div> 669         </div>
371         <script type="text/javascript"> 670         <script type="text/javascript">
372           require([ 671           require([
373             'jquery', 672             'jquery',
374             'owlcarousel', 673             'owlcarousel',
375             'lazyload' 674             'lazyload'
376           ], function ($) { 675           ], function ($) {
    676             <?php if($product_type == '20'){?>
    677               window.setTimeout(function(){
    678                 $( '.product-item-info .effect-bhesfd' ).each( function() {
    679                     var $item = $( this ),
    680                         $detail = $item.find( '.product-item-details .product-item-inner' ),
    681                         height = $item.height() + $detail.height() + 32;
    682                     $item.find( '>.content-shadow' ).height( height );
    683                     $( window ).on( 'resize', function() {
    684                         $detail = $item.find( '.product-item-details .product-item-inner' );
    685                         height = $item.height() + $detail.height() + 32;
    686                         $item.find('>.content-shadow').height( height );
    687                     } );
    688                 });
    689               },500);
    690             <?php }?>
377             $("#porto-filter-products-<?= $id ?> .owl-carousel").owlCarousel({ 691             $("#porto-filter-products-<?= $id ?> .owl-carousel").owlCarousel({
378               autoplay: <?php echo $enable_autoplay;?>, 692               autoplay: <?php echo $enable_autoplay;?>,
379               autoplayTimeout: 5000, 693               autoplayTimeout: 5000,
380               autoplayHoverPause: true, 694               autoplayHoverPause: true,
381               loop: <?php echo $enable_slide_loop;?>, 695               loop: <?php echo $enable_slide_loop;?>,
382               navRewind: true, 696               navRewind: true,
383               lazyLoad:true, 697               lazyLoad:true,
384               margin: 0, 698               margin: 0,
385               nav: <?php echo $show_slide_nav;?>, 699               nav: <?php echo $show_slide_nav;?>,
386               dots: <?php echo $show_slide_page;?>, 700               dots: <?php echo $show_slide_page;?>,
387               responsive: { 701               responsive: {
388                 0: { 702                 0: {
389                   items:<?php echo $mobile_slide_columns; ?> 703                   items:<?php echo $mobile_slide_columns; ?>
390                 }, 704                 },
391                 640: { 705                 640: {
392                   items:<?php echo $mobile_slide_columns; ?> 706                   items:<?php echo $mobile_slide_columns; ?>
393                 }, 707                 },
394                 768: { 708                 768: {
395                   items: <?php echo $tablet_slide_columns; ?> 709                   items: <?php echo $tablet_slide_columns; ?>
396                 }, 710                 },
397                 992: { 711                 992: {
398                   items: <?php echo $tablet_slide_columns; ?> 712                   items: <?php echo $tablet_slide_columns; ?>
399                 }, 713                 },
400                 1200: { 714                 1200: {
401                   items: <?php echo $desktop_slide_columns; ?> 715                   items: <?php echo $desktop_slide_columns; ?>
402                 } 716                 }
403               } 717               }
404             }); 718             });
405             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 }); 719             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 });
406             if ($('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').length) { 720             if ($('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').length) {
407                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('initialized.owl.carousel', function() { 721                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('initialized.owl.carousel', function() {
408                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear'); 722                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear');
409                 }); 723                 });
410                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('changed.owl.carousel', function() { 724                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('changed.owl.carousel', function() {
411                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear'); 725                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear');
412                 }); 726                 });
413             } 727             }
414           }); 728           });
415         </script> 729         </script>
416       </div> 730       </div>
417     </div> 731     </div>
418     <?php if (!$_dailydealhelper->isLoadedTimer()): ?> 732     <?php if (!$_dailydealhelper->isLoadedTimer()): ?>
419     <script type="text/javascript"> 733     <script type="text/javascript">
420     require([ 734     require([
421         'jquery' 735         'jquery'
422     ], function ($) { 736     ], function ($) {
423     // Timer for LEFT time for Dailydeal product 737     // Timer for LEFT time for Dailydeal product
424         var _second = 1000; 738         var _second = 1000;
425         var _minute = _second * 60; 739         var _minute = _second * 60;
426         var _hour = _minute * 60; 740         var _hour = _minute * 60;
427         var _day = _hour * 24; 741         var _day = _hour * 24;
428         var timer; 742         var timer;
429  743 
430         //Set date as magentodatetime 744         //Set date as magentodatetime
431         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>'); 745         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>');
432         var l_date = new Date(); 746         var l_date = new Date();
433         var offset_date = l_date - date; 747         var offset_date = l_date - date;
434  748 
435         function showRemaining() 749         function showRemaining()
436         { 750         {
437             $(".sw-dailydeal-wrapper").each(function(){ 751             $(".sw-dailydeal-wrapper").each(function(){
438                 var unique_id = $(this).attr("data-unique-id"); 752                 var unique_id = $(this).attr("data-unique-id");
439                 // get Value of dailydeal product 753                 // get Value of dailydeal product
440                 var cid='countdown_'+unique_id; 754                 var cid='countdown_'+unique_id;
441                 var daysid='countdown_days_'+unique_id; 755                 var daysid='countdown_days_'+unique_id;
442                 var hoursid='countdown_hours_'+unique_id; 756                 var hoursid='countdown_hours_'+unique_id;
443                 var minutesid='countdown_minutes_'+unique_id; 757                 var minutesid='countdown_minutes_'+unique_id;
444                 var secondsid='countdown_seconds_'+unique_id; 758                 var secondsid='countdown_seconds_'+unique_id;
445  759 
446                 var startdateid='fromdate_'+unique_id; 760                 var startdateid='fromdate_'+unique_id;
447                 var id='todate_'+unique_id; 761                 var id='todate_'+unique_id;
448  762 
449                 var enddate = new Date($('#'+id).val()); 763                 var enddate = new Date($('#'+id).val());
450                 var dealstartdate=new Date($('#'+startdateid).val()); 764                 var dealstartdate=new Date($('#'+startdateid).val());
451  765 
452                 var currentdate=new Date(); 766                 var currentdate=new Date();
453  767 
454                 //Get Difference between Two dates 768                 //Get Difference between Two dates
455                 var distance = enddate - (currentdate - offset_date); 769                 var distance = enddate - (currentdate - offset_date);
456  770 
457                 $('.sw-dailydeal-wrapper').show(); 771                 $('.sw-dailydeal-wrapper').show();
458  772 
459                 if (distance < 0) { 773                 if (distance < 0) {
460                    // clearInterval(timer); 774                    // clearInterval(timer);
461                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>"); 775                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>");
462  776 
463                 } else if(dealstartdate > currentdate) { 777                 } else if(dealstartdate > currentdate) {
464                    $('.countdowncontainer_'+unique_id).hide(); 778                    $('.countdowncontainer_'+unique_id).hide();
465                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>"; 779                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>";
466                    $('#expired_'+unique_id).html(msg); 780                    $('#expired_'+unique_id).html(msg);
467                 } else { 781                 } else {
468                     var days = Math.floor(distance / _day); 782                     var days = Math.floor(distance / _day);
469                     var hours = Math.floor((distance % _day) / _hour); 783                     var hours = Math.floor((distance % _day) / _hour);
470                     var minutes = Math.floor((distance % _hour) / _minute); 784                     var minutes = Math.floor((distance % _hour) / _minute);
471                     var seconds = Math.floor((distance % _minute) / _second); 785                     var seconds = Math.floor((distance % _minute) / _second);
472  786 
473                     if(hours < 10) 787                     if(hours < 10)
474                         hours = "0" + hours; 788                         hours = "0" + hours;
475                     if(minutes < 10) 789                     if(minutes < 10)
476                         minutes = "0" + minutes; 790                         minutes = "0" + minutes;
477                     if(seconds < 10) 791                     if(seconds < 10)
478                         seconds = "0" + seconds; 792                         seconds = "0" + seconds;
479                     $('.countdowncontainer_'+unique_id).show(); 793                     $('.countdowncontainer_'+unique_id).show();
480                     $('#'+daysid).html(days); 794                     $('#'+daysid).html(days);
481                     $('#'+hoursid).html(hours); 795                     $('#'+hoursid).html(hours);
482                     $('#'+minutesid).html(minutes); 796                     $('#'+minutesid).html(minutes);
483                     $('#'+secondsid).html(seconds); 797                     $('#'+secondsid).html(seconds);
484                 } 798                 }
485             }); 799             });
486         } 800         }
487  801 
488         // Set Interval 802         // Set Interval
489         timer = setInterval(function() 803         timer = setInterval(function()
490         { 804         {
491             showRemaining(); 805             showRemaining();
492         }, 1000); 806         }, 1000);
493     }); 807     });
494     </script> 808     </script>
495     <?php $_dailydealhelper->setLoadedTimer(); ?> 809     <?php $_dailydealhelper->setLoadedTimer(); ?>
496     <?php endif; ?> 810     <?php endif; ?>
497     <?php if (!$block->isRedirectToCartEnabled()) : ?> 811     <?php if (!$block->isRedirectToCartEnabled()) : ?>
498         <script type="text/x-magento-init"> 812         <script type="text/x-magento-init">
499         { 813         {
500             "[data-role=tocart-form], .form.map.checkout": { 814             "[data-role=tocart-form], .form.map.checkout": {
501                 "catalogAddToCart": {} 815                 "catalogAddToCart": {}
502             } 816             }
503         } 817         }
504         </script> 818         </script>
505     <?php endif; ?> 819     <?php endif; ?>
506 <?php endif; ?> 820 <?php endif; ?>